package bim.dao.impl;

import keter.dao.base.KeterAbstractDao;

import org.springframework.stereotype.Repository;

import bim.dao.AccessoryDao;
import bim.domain.Accessory;

@Repository
public class AccessoryDaoImpl extends KeterAbstractDao<Accessory> implements AccessoryDao {

	@Override
	public Accessory findByFileId(String fid) {
		return getSingleResult("from Accessory a where a.fileId = :fileId", 
				wrap("fileId"),
				wrap(fid)
		);
		
	}
	
    
}